package com.powerbank.ordercenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.powerbank.ordercenter.entity.OrderLog;

import java.util.List;

/**
 * 订单日志服务接口
 */
public interface OrderLogService extends IService<OrderLog> {

    /**
     * 创建订单日志
     */
    void createLog(Long orderId, String orderNo, String operationType, 
                   String beforeStatus, String afterStatus, 
                   Long operatorId, String operatorType, String operationDesc);

    /**
     * 根据订单ID查询日志
     */
    List<OrderLog> getLogsByOrderId(Long orderId);

    /**
     * 根据订单号查询日志
     */
    List<OrderLog> getLogsByOrderNo(String orderNo);
}